Try to simplify the initialization of Vload_path
authorGlenn Morris <rgm@gnu.org>
Sat, 7 Jul 2012 18:06:32 +0000 (11:06 -0700)
committerGlenn Morris <rgm@gnu.org>
Sat, 7 Jul 2012 18:06:32 +0000 (11:06 -0700)
commit2148a2e25245c917bd4ae3020d7dd8b2981bc284
tree08f3eb008c3ab057724a29725b5f46ba263fda39
parentc20664d2ecf383df6f8208fbd5ae88dc99a2fa12
Try to simplify the initialization of Vload_path

* src/lread.c (load_path_check): New function, split from init_lread.
(init_lread): Reorganize.  Motivation:
If EMACSLOADPATH is set, check/warn about that rather than the
defaults, which we are not going to use.  Hence we can remove
the turn_off_warning and WINDOWSNT || HAVE_NS tests.
Don't warn if site-lisp directories are missing.
If not installed, start from a blank load-path, since
PATH_LOADSEARCH refers to the eventual installation directories.
src/ChangeLog
src/lread.c